
import 'dart:convert';

import 'package:xin_nuo_pda/bean/request_bean_entity.dart';
import 'package:xin_nuo_pda/values/constant.dart';

class RequestUtil{
  //格式化请求
  static Map<String, dynamic> formatJsonDataParameters({String? funcName,Map<String, dynamic>? parame}){
    final header = RequestBeanRequestHeader.init("EN",funcName ?? '',"20210924120000","378341","SBE",USER);
    // final header = RequestBeanRequestHeader.init("EN",funcName ?? '',"20210924120000","378345","SBE",USER);
    final requestContent = RequestBeanRequest.init(header, parame);
    final requeset = RequestBeanEntity.init(requestContent);
    return {"senderId":"EAP2MESSender","requestMessage":json.encode(requeset.toJson()),"timeOut":"5000"};
  }

}

